// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_fk;

import android.app.*;
import android.content.ComponentName;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.*;
import android.widget.*;
import com.nnee.p_pr.p_d.cls_c;

// Referenced classes of package com.nnee.p_fk:
//            c, e, a, j, 
//            n

public class cls_ActivityEx extends ActivityGroup
    implements  com.nnee.p_fk.cls_c, cls_e
{

    public cls_ActivityEx()
    {
        b = null;
        c = null;
        e = null;
        f = null;
        g = null;
        i = true;
        m = null;
    }

    private void b()
    {
        getLayoutInflater().setFactory(new cls_a(this));
    }

    private String c()
    {
        String s = null;
        ActivityInfo activityinfo=null;
		try {
			activityinfo = getPackageManager().getActivityInfo(e(), 128);
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        Object obj = activityinfo;
        if(obj == null || ((ActivityInfo) (obj)).metaData == null) {
        	return s;
        } else {
        	 int i1 = ((ActivityInfo) (obj)).metaData.getInt("logname");
             if(i1 <= 0) {
            	 return s;
             } else {
            	 String s1 = getResources().getString(i1);
                 s = s1;
             }
        }
        return s;
    }

    private ComponentName e()
    {
        ComponentName componentname = getComponentName();
        if(componentname == null)
            componentname = new ComponentName(this, getClass());
        return componentname;
    }

    static String[] q()
    {
        return j;
    }

    public void a(Activity activity)
    {
        com.nnee.p_fk.cls_j.d(activity);
    }

    public void a(Drawable drawable)
    {
        if(d != null)
            d.setBackgroundDrawable(drawable);
    }

    public void a(android.view.ViewGroup.LayoutParams layoutparams)
    {
        if(d != null)
            d.setLayoutParams(layoutparams);
    }

    public void a(String s, String s1)
    {
        if(k != null)
            j();
        k = ProgressDialog.show(this, s, s1, true, true);
    }

    protected void a(boolean flag)
    {
        i = flag;
    }

    public void b(Activity activity)
    {
        com.nnee.p_fk.cls_j.i(activity);
    }

    public void b(Drawable drawable)
    {
        e.setImageDrawable(drawable);
        e.setVisibility(0);
    }

    public void b(String s)
    {
        a(null, s);
    }

    public void c(int i1)
    {
        if(d != null)
            d.setBackgroundResource(i1);
    }

    public void c(Activity activity)
    {
        com.nnee.p_fk.cls_j.g(activity);
    }

    public void c(Drawable drawable)
    {
        g.setImageDrawable(drawable);
        g.setVisibility(0);
    }

    public void d(int i1)
    {
        e.setImageResource(i1);
        e.setVisibility(0);
    }

    public void d(Activity activity)
    {
        com.nnee.p_fk.cls_j.f(activity);
    }

    public void e(int i1)
    {
        e.setVisibility(i1);
    }

    public void e(Activity activity)
    {
        com.nnee.p_fk.cls_j.e(activity);
    }

    protected boolean e_()
    {
        return false;
    }

    public void f(int i1)
    {
        g.setImageResource(i1);
        g.setVisibility(0);
    }

    public void f(Activity activity)
    {
        com.nnee.p_fk.cls_j.h(activity);
    }

    public void f_()
    {
    }

    public void g(int i1)
    {
        g.setVisibility(i1);
    }

    public void h(int i1)
    {
        h.setBackgroundResource(i1);
    }

    protected void i()
    {
    }

    public void j()
    {
        if(k != null)
        {
            k.dismiss();
            k = null;
        }
    }

    public void k()
    {
        if(d != null)
            d.setVisibility(8);
    }

    public void l()
    {
        if(d != null)
            d.setVisibility(0);
    }

    public void m()
    {
        h.setVisibility(0);
        h.setOnClickListener(new cls_n(this));
    }

    public boolean n()
    {
        boolean flag;
        if(h.getVisibility() == 0)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public void o()
    {
        h.setVisibility(8);
    }

    public void onConfigurationChanged(Configuration configuration)
    {
        super.onConfigurationChanged(configuration);
    }

    protected void onCreate(Bundle bundle)
    {
        super.onCreate(bundle);
        b();
        if(i)
        {
            getWindow().requestFeature(1);
            a(this);
            if(!e_())
            {
                super.setContentView(getLayoutInflater().inflate(0x7f030000, null));
            } else
            {
                FrameLayout framelayout = new FrameLayout(this);
                framelayout.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-1, -1));
                h = new ImageView(this);
                h.setLayoutParams(new android.widget.FrameLayout.LayoutParams(-1, -1));
                h.setBackgroundResource(0x7f020083);
                h.setVisibility(8);
                framelayout.addView(getLayoutInflater().inflate(0x7f030000, null), 0);
                framelayout.addView(h, 1);
                super.setContentView(framelayout);
            }
            c = (LinearLayout)findViewById(0x7f0d0000);
            d = (RelativeLayout)findViewById(0x7f0d0001);
            e = (ImageView)findViewById(0x7f0d0002);
            f = (TextView)findViewById(0x7f0d0003);
            g = (ImageView)findViewById(0x7f0d0008);
        }
    }

    public void onCreateContextMenu(ContextMenu contextmenu, View view, android.view.ContextMenu.ContextMenuInfo contextmenuinfo)
    {
        super.onCreateContextMenu(contextmenu, view, contextmenuinfo);
    }

    public boolean onCreateOptionsMenu(Menu menu)
    {
        return super.onCreateOptionsMenu(menu);
    }

    protected void onDestroy()
    {
        b(this);
        super.onDestroy();
    }

    public boolean onOptionsItemSelected(MenuItem menuitem)
    {
        return super.onOptionsItemSelected(menuitem);
    }

    protected void onPause()
    {
        c(this);
        super.onPause();
    }

    public boolean onPrepareOptionsMenu(Menu menu)
    {
        return super.onPrepareOptionsMenu(menu);
    }

    protected void onResume()
    {
        super.onResume();
        d(this);
        com.nnee.p_pr.p_d.cls_c.b(p());
    }

    public boolean onSearchRequested()
    {
        return false;
    }

    protected void onStart()
    {
        super.onStart();
        e(this);
    }

    protected void onStop()
    {
        f(this);
        super.onStop();
    }

    public String p()
    {
        if(m == null)
            m = c();
        return m;
    }

    public void setContentView(int i1)
    {
        if(i)
            setContentView(((LayoutInflater)getSystemService("layout_inflater")).inflate(i1, null, false));
        else
            super.setContentView(i1);
    }

    public void setContentView(View view)
    {
        if(c != null)
        {
            if(b != null)
                c.removeView(b);
            view.setLayoutParams(new android.widget.LinearLayout.LayoutParams(-1, -1));
            c.addView(view, 1);
            b = view;
        } else
        {
            super.setContentView(view);
        }
    }

    public void setTitle(int i1)
    {
        f.setText(i1);
    }

    public void setTitle(CharSequence charsequence)
    {
        f.setText(charsequence);
    }

    private static final String a = "ActivityEx";
    private static final String j[];
    private View b;
    private LinearLayout c;
    private RelativeLayout d;
    private ImageView e;
    private TextView f;
    private ImageView g;
    private ImageView h;
    private boolean i;
    private ProgressDialog k;
    private final String l = "logname";
    private String m;

    static 
    {
        String as[] = new String[3];
        as[0] = "android.widget.";
        as[1] = "android.view.";
        as[2] = "android.webkit.";
        j = as;
    }
}
